A course titled "
KornShell Programming (Course 434)
"
is taught by
Mr. Dana French
of
Mt Xia
through
Learning Tree International.
An overview of this course follows:
INTRODUCTION AND OVERVIEW
- Knowing when to use ksh
- Integrating KornShell scripts with external applications and tools
- Typical KornShell applications
- Differences between ksh88 and ksh93
- Benefits of KornShell vs. other shells
KORNSHELL FUNDAMENTALS
Shell script elements
- Commands and comments
- Defining exit values
Conditional program execution
- Applying if and case statements
- Simplifying if logic with elif
Program loops and iteration
- Conditional looping with while and until
- Pattern matching and list for loops
Testing files and strings
- Testing file age and permissions
- Comparing strings
- Verifying the existence of a string
- Testing with the [[ ]] command
Debugging
- Redirecting print as a debugging aid
- set commands for debugging
STORING AND ACCESSING DATA
Positional parameters
- Passing and accessing parameters
- Setting and unsetting parameters
- Manipulating parameters as groups
Shell variables
- Defining global and local variables
- Specifying default values and error conditions
- Writing reports by setting display characteristics
Arrays
- Creating and indexing arithmetic arrays
- Processing array contents with special variables
PROCESSING DATA
Manipulating strings
- Extracting substrings
- Determining string length
Mathematics under the KornShell
- Creating counting while loops
- Writing mathematical expressions: let vs. (( )), $(( ))
MODULAR PROGRAMMING WITH FUNCTIONS
KornShell function basics
- Functions vs. scripts
- Managing your variable namespace
Creating a function library
- Finding your library with FPATH
- Building a function library directory
INTERACTING WITH THE OUTSIDE WORLD
Manipulating files and redirecting data
- Processing command line parameters
- Deciphering redirection order
- Unraveling the secrets of exec: opening and closing multiple files
Interacting with running processes
- Handling error signals
- Defining post-termination actions such as notification, cleanup
- Reinitializing or getting status
Accessing network servers
- Contacting a network server
- Exchanging data with a network server
CREATING "PRODUCTION QUALITY" SCRIPTS
Ensuring environmental control
- Checking and modifying environment variables
- Using getopts to process command line options
Handling user interactions
- Setting up error processing
- Employing select to create a menu interface
The following is a free course on the topic of
Bourne Shell programing
intro.html UNIX Bourne Shell Programming
man_ar.html Manual: ar(1)
man_cb.html Manual: cb(1)
man_cc.html Manual: cc(1)
man_expr.html Manual: expr(1)
man_f77.html Manual: f77(1)
man_ftp.html Manual: ftp(1)
man_ksh.html Manual: ksh(1)
man_lint.html Manual: lint(1)
man_sh.html Manual: sh(1)
man_test.html Manual: test(1)
man_time.html Manual: time(1)
sh1.html UNIX Bourne Shell Programming
sh2a.html UNIX Bourne Shell Programming
sh2b.html UNIX Bourne Shell Programming
sh3.html UNIX Bourne Shell Programming
sh4a.html UNIX Bourne Shell Programming
sh4b.html UNIX Bourne Shell Programming
sh5a.html UNIX Bourne Shell Programming
sh5b.html UNIX Bourne Shell Programming
sh6a.html UNIX Bourne Shell Programming
sh6b.html UNIX Bourne Shell Programming
sh6c.html UNIX Bourne Shell Programming
sh7a.html UNIX Bourne Shell Programming
sh7b.html UNIX Bourne Shell Programming
sh8.html UNIX Bourne Shell Programming
sh9a.html UNIX Bourne Shell Programming
sh9b.html UNIX Bourne Shell Programming
toc.html UNIX Bourne Shell Programming
|